package com.zl.gmadmin.entity;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.management.relation.Role;

import java.time.LocalDateTime;
import java.util.List;

@TableName("sys_menu")
@ApiModel(value = "菜单信息表")
public class SysMenu {

  @TableId(type = IdType.AUTO,value = "menu_id")
  @ApiModelProperty(value = "菜单id")
  private Long id;
  private Long pid;
  private Integer subCount;
  private Integer type;
  private String title;
  private String name;
  private String component;
  private Long menuSort;
  private String icon;
  private String path;
  private Boolean iFrame;
  private Boolean cache;
  private Boolean hidden;
  private String permission;
  private String createBy;
  private String updateBy;
  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createTime;
  @TableField(fill = FieldFill.UPDATE)
  private LocalDateTime updateTime;

  private String method;

  @TableField(exist = false)
  private List<Role> roles;

  public List<Role> getRoles() {
    return roles;
  }

  public String getMethod() {
    return method;
  }

  public void setMethod(String method) {
    this.method = method;
  }

  public Boolean getiFrame() {
    return iFrame;
  }

  public void setiFrame(Boolean iFrame) {
    this.iFrame = iFrame;
  }

  public void setRoles(List<Role> roles) {
    this.roles = roles;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }


  public Long getPid() {
    return pid;
  }

  public void setPid(Long pid) {
    this.pid = pid;
  }


  public Integer getSubCount() {
    return subCount;
  }

  public void setSubCount(Integer subCount) {
    this.subCount = subCount;
  }


  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }


  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public String getComponent() {
    return component;
  }

  public void setComponent(String component) {
    this.component = component;
  }


  public Long getMenuSort() {
    return menuSort;
  }

  public void setMenuSort(Long menuSort) {
    this.menuSort = menuSort;
  }


  public String getIcon() {
    return icon;
  }

  public void setIcon(String icon) {
    this.icon = icon;
  }


  public String getPath() {
    return path;
  }

  public void setPath(String path) {
    this.path = path;
  }





  public Boolean getCache() {
    return cache;
  }

  public void setCache(Boolean cache) {
    this.cache = cache;
  }


  public Boolean getHidden() {
    return hidden;
  }

  public void setHidden(Boolean hidden) {
    this.hidden = hidden;
  }


  public String getPermission() {
    return permission;
  }

  public void setPermission(String permission) {
    this.permission = permission;
  }


  public String getCreateBy() {
    return createBy;
  }

  public void setCreateBy(String createBy) {
    this.createBy = createBy;
  }


  public String getUpdateBy() {
    return updateBy;
  }

  public void setUpdateBy(String updateBy) {
    this.updateBy = updateBy;
  }


  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }


  public LocalDateTime getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(LocalDateTime updateTime) {
    this.updateTime = updateTime;
  }

  public SysMenu(){

  }


}
